package proxy.cglib.dynamic;

import java.lang.reflect.Proxy;

/**
 * @description: ToDo
 * @author: marin
 * @time: 2020/7/6 20:17
 */
public class DynamicTest {
    public static void main(String[] args) {
        RealSubject realSubject = new RealSubject();
        DynamicProxy dynamicProxy = new DynamicProxy(realSubject);
        Object proxySubject = Proxy.newProxyInstance(DynamicProxy.class.getClassLoader(), DynamicProxy.class.getInterfaces(), dynamicProxy);
        //String result = proxySubject.request();
        //System.out.println(result);
    }
}
